package org.neurone.domain.persistence;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.neurone.domain.UserInfo;
import org.neurone.domain.UserConfig;

/**
 * 用户配置
 * @author Administrator
 *
 */
@Entity
@Table(name="TUserConfig")
public class UserConfigPersistence extends UserConfig implements java.io.Serializable {

	/* (non-Javadoc)
	 * @see org.neurone.domain.persistence.UserConfig#getUserConfigID()
	 */
	@Id
	@Column
	public Long getUserConfigID() {
		return userConfigID;
	}


	/* (non-Javadoc)
	 * @see org.neurone.domain.persistence.UserConfig#isMessage2EmailNotify()
	 */
	@Column
	public boolean isMessage2EmailNotify() {
		return message2EmailNotify;
	}

	public void setUserConfigID(Long userConfigID) {
		this.userConfigID = userConfigID;
	}

	public void setMessage2EmailNotify(boolean message2EmailNotify) {
		this.message2EmailNotify = message2EmailNotify;
	}


	@Override
@OneToOne(mappedBy="userConfig",targetEntity=UserInfoPersistence.class)
	
	public UserInfo getBelongUser() {
		return this.belongUser;
	}


	public void setBelongUser(UserInfo belongUser) {
		this.belongUser = belongUser;
	}

	
}
